package com.bxait.toymail.cart.feign;
import com.bxait.com.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/*
@description:
@ClassName ProductFeignService
@author Chen
@create 2023-04-29 22:46
@Version 1.0
*/
@FeignClient("toymail-product")
public interface ProductFeignService {

    /*
     * @param skuId
     * @==============History===============<br/>
     * @Description //   获取sku信息
     * @Date 2023/4/29 2023/4/29
     * @Author < a href="2277411582@qq.com">chen</ a>
     * @return com.bxait.com.utils.R
     */
    @RequestMapping("/product/skuInfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);


    /*
     * @param skuId
     * @==============History===============<br/>
     * @Description //   获取当前sku的销售属性值
     * @Date 2023/4/30 2023/4/30
     * @Author < a href="2277411582@qq.com">chen</ a>
     * @return java.util.List<java.lang.String>
     */
//    @GetMapping("/product/skusaleattrvalue/stringList/{skuId}")
    @GetMapping("/product/skuInfo/SaleAttrValues/{skuId}")
    R getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

    /*
     * @param skuId
     * @==============History===============<br/>
     * @Description //   获取当前sku的价格
     * @Date 2023/4/30 2023/4/30
     * @Author < a href="2277411582@qq.com">chen</ a>
     * @return com.bxait.com.utils.R
     */
    @GetMapping("/product/skuInfo/{skuId}/price")
    R getPrice(@PathVariable("skuId") Long skuId);
}
